package com.aiyan.edu.nacos.consumer.example.client;

import com.aiyan.edu.nacos.consumer.example.client.fallback.DefaultFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author: zqzhou
 * @create: 2019/12/11 15:04
 **/
@FeignClient(serviceId = "aiyanedu-nacos-provider-example", fallback = DefaultFallback.class)
public interface HelloClient {

    @GetMapping("/provider/hello/{id}")
    public String hello(@PathVariable("id") String id);
}
